package com.hxy.health.platform.dao;

import com.hxy.health.platform.pojo.Cart;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CartMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Cart record);

    int insertSelective(Cart record);

    Cart selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Cart record);

    int updateByPrimaryKey(Cart record);

    Cart getByEmailAndProductId(@Param("id") Integer id, @Param("email") String email);

    List<Cart> getByEmail(String email);

    void deleteByEmail(String email);
}